package io.wdb.modules.manager.job.task;

import java.util.Date;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import io.wdb.common.utils.DateFormatUtil;
import io.wdb.modules.generator.generator.service.job.CapitalSchedulService;

/**
 * 
 * @ClassName: CapitalSchedulTask.java
 * @Description:
 * @Time 2018年2月4日
 * @author: Tom
 */
@Component("capitalSchedulTask")
public class CapitalSchedulTask {
	
	private Logger logger = LoggerFactory.getLogger(CapitalSchedulTask.class);
	
	@Autowired
	private CapitalSchedulService capitalSchedulService;
	
	/**
	 * 
	 * @Method:capitalDeposit
	 * @Description:每个小时统计元数据信息
	 * @Time 2018年2月4日 下午3:30:02
	 * @author: Tom
	 * @param params2 
	 */
	public void capitalDeposit(Map<String, Object> params) {
		logger.info("统计元数据信息,"+DateFormatUtil.formatDate(new Date()));
		/*Map<String,Object> params = new HashMap<>();
		if(params.get("selectTime")==null) {
			Date date = new Date();
			params.put("selectTime", date);
		}*/
		capitalSchedulService.statisticalMetadata(params);
	}
}
